package com.vicente.managerdemo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统菜单信息表
 * </p>
 *
 * @author vicente
 * @since 2024-12-04
 */
@Getter
@Setter
@TableName("mb_menu")
@ApiModel(value = "Menu对象", description = "系统菜单信息表")
public class Menu {

    @ApiModelProperty("菜单ID")
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Long menuId;

    @ApiModelProperty("菜单名称")
    @TableField("menu_name")
    private String menuName;

    @ApiModelProperty("父菜单ID")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("显示顺序")
    @TableField("order_num")
    private Integer orderNum;

    @ApiModelProperty("路由地址")
    @TableField("router_path")
    private String routerPath;

    @ApiModelProperty("菜单类型（C目录 M菜单 B按钮）")
    @TableField("menu_type")
    private String menuType;

    @ApiModelProperty("显示状态（0显示 1隐藏）")
    @TableField("is_visible")
    private Boolean isVisible;

    @ApiModelProperty("菜单状态（0正常 1停用）")
    @TableField("menu_status")
    private Boolean menuStatus;

    @ApiModelProperty("权限标识")
    @TableField("perms")
    private String perms;

    @ApiModelProperty("创建者")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新者")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("是否缓存（0否 1是）")
    @TableField("keep_alive")
    private Boolean keepAlive;

    @ApiModelProperty("组件路径")
    @TableField("component_path")
    private String componentPath;
}
